package cn.wolfcode.edu.domain;

import com.fasterxml.jackson.annotation.JsonFormat;
import lombok.*;
import org.springframework.format.annotation.DateTimeFormat;

import java.util.Date;

@Setter@Getter@ToString
@AllArgsConstructor
@NoArgsConstructor
public class Client extends BaseDomain{

    public static final boolean NO_TRACE = false;   //待跟踪
    public static final boolean YES_TRACE = true;   //已跟踪
//    public static final boolean OFFICIAL_STUDENT = true;    //正式学员
//    public static final boolean POTENTIAL_CUSTOMER = false; //潜在客户



    private String name;            //潜在客户姓名
    private Integer traceNum = 1;       //跟踪次数
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date lastTraceTime;     //最后一次跟踪时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd' 'HH:mm:ss' '", timezone = "GMT+8")
    private Date nextTraceTime;     //下一次跟踪时间
    @DateTimeFormat(pattern = "yyyy-MM-dd HH:mm:ss")
    @JsonFormat(pattern = "yyyy-MM-dd HH:mm:ss", timezone = "GMT+8")
    private Date appointTime;       //约访时间
    @DateTimeFormat(pattern = "yyyy-MM-dd")
    @JsonFormat(pattern = "yyyy-MM-dd' 'HH:mm:ss' '", timezone = "GMT+8")
    private Date formBuildDate;     //建档时间
    @JsonFormat(pattern = "yyyy-MM-dd' 'HH:mm:ss' '", timezone = "GMT+8")
    private Date inputTime;         //录入时间
    private String qq;              //QQ号
    private String tel;             //电话号码
    private String school;          //学校
    private boolean isTraced = YES_TRACE; //跟踪状态 默认为已跟踪
    private String remark;          //备注
    private Integer age;            //年龄
    private String gender;          //性别
    private String email;           //邮箱
    private String address;         //联系地址
    private String major;           //专业
    private boolean hasOwnComputer; //是否只带电脑
    private String focusProblem;    //关注问题
    private String yearsOfWorking;  //工作年限
    private String weChat;          //微信
    private String introducerTel;   //介绍人电话
    private String introduceName;   //介绍人姓名
    private String job;             //之前从事的工作
    private boolean hasPaid;        //是否0付费
    private Employee inputUser;     //录入人
    private Employee saleman;       //营销人
    private ClassGrade clz;             //意向班级
    private SystemDictionaryItem intentionDegree; //意向程度
    private SystemDictionaryItem eduBackground;   //学历
    private SystemDictionaryItem campus;          //意向校区
    private SystemDictionaryItem intentionSubject;//意向学科
    private SystemDictionaryItem statue;          //状态  正式学员&正常
    private SystemDictionaryItem source;          //来源  广告  老学员推荐  自己来的 这些
    private BigCustomer bigCustomer;     //大客户
}